﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Less2DB.SQLite
{
    public class DAL : Less2DB.Interfaces.IDAL
    {
        System.Data.IDbConnection Less2DB.Interfaces.IDAL.CreateConnection()
        {
            return new System.Data.SQLite.SQLiteConnection();
        }

        System.Data.IDbConnection Less2DB.Interfaces.IDAL.CreateConnection(string connectionString)
        {
            return new System.Data.SQLite.SQLiteConnection(connectionString);
        }

        System.Data.IDbDataParameter Less2DB.Interfaces.IDAL.CreateParameter(string name, object value)
        {
            return new System.Data.SQLite.SQLiteParameter(name, value);
        }

        System.Data.IDbDataAdapter Interfaces.IDAL.CreateDataAdapter()
        {
            return new System.Data.SQLite.SQLiteDataAdapter();
        }

        string Interfaces.IDAL.DALName
        {
            get { return "Less2DB.SQLite"; }
        }
    }
}
